export function getGradeImg(index){
     
    // let imgurl= [
    //     { grade: index, img: require("assets/image/icon_all_wdtg_"+index+".png") },
    //   ];
    return  require("assets/image/icon_all_wdtg_1.png");

}
export function getFirstName(name) {
    let names = "";
    if (name.length == 2) {
      names = name.substring(0, 1) + "*";
    } else {
      for (let i = 0; i < name.length; i++) {
        if (i == 0) {
          names = name[i];
        }
        if (name.length - 1 - i == 0) {
          names += name[i];
        }
        if (i > 0 && i < name.length - 1) {
          names += "*";
        }
      }
    }
    return names;
  }

 